home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 85 / CDMM85_1.ISO / Monopoly Tycoon / MTycoonDemo.exe / data1.cab / scripts / FLYBY1 / hub.lua
Encoding:
Text File  |  2001-10-24  |  1.0 KB  |  26 lines

  1. -------------------------------------------------------------------------------------------------
  2. -- INITIALISE_Level. Standard level event
  3. -------------------------------------------------------------------------------------------------
  4. function EVENTINITIALISE_Level()
  5.     C_RunScript("scripts\\maps\\intromap.lua");
  6.     Game.SetLogos(true);
  7. --    People.Create(500,     -1, -1, -1);
  8. end;
  9.  
  10. -------------------------------------------------------------------------------------------------
  11. -- Level. Standard level event.
  12. -------------------------------------------------------------------------------------------------
  13. function EVENT_Level()
  14.     local lev = Random.ZeroTo(Game.performance);
  15.     if lev == 2 then
  16.         Calendar.hour = HOUR_8;
  17.         Camera.SetFlybyMode("gamedata\\cut_scenes\\intro_high.tm");
  18.     elseif lev == 1 then
  19.         Calendar.hour = HOUR_20;
  20.         Camera.SetFlybyMode("gamedata\\cut_scenes\\intro_medium.tm");
  21.     else
  22.         Calendar.hour = HOUR_12;
  23.         Camera.SetFlybyMode("gamedata\\cut_scenes\\intro_low.tm");
  24.     end;
  25. end;
  26.